package com.ybwh.springboot2.vueadmin.sys.controller;


import com.ybwh.springboot2.common.Pagination;
import com.ybwh.springboot2.common.RespData;
import com.ybwh.springboot2.vueadmin.sys.model.vo.user.UserAccountPageParam;
import com.ybwh.springboot2.vueadmin.sys.model.vo.user.UserAccountPageVO;
import com.ybwh.springboot2.vueadmin.sys.service.SysUserAccountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "用户模块")
@Validated
@RestController
@RequestMapping("/user")
public class SysUserAccountController {

    @Autowired
    private SysUserAccountService sysUserAccountService;

    @ApiOperation(value = "用户分页列表", notes = "")
    @PostMapping(value = "/pageList")
    public RespData<Pagination<UserAccountPageVO>> pageList(@RequestBody UserAccountPageParam param) {

        return RespData.successResp(sysUserAccountService.pageList(param));
    }



}
